//
//  SLWXDelegate.m
//  ShunLianPower2
//
//  Created by 陈镇 on 2017/10/25.
//  Copyright © 2017年 陈镇. All rights reserved.
//

#import "SLWXDelegate.h"
//#import "LHPayManager.h"
static SLWXDelegate *_wxHuiDiao = nil;
@implementation SLWXDelegate

+(instancetype)sharedObj{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _wxHuiDiao = [[SLWXDelegate alloc] init];
    });
    return _wxHuiDiao;
}
//
///*
// 如果第三方程序向微信发送了sendReq的请求，那么onResp会被回调。sendReq请求调用后，会切到微信终端程序界面。
//
// */
//-(void)onResp:(BaseResp*)resp{
//    if ([resp isKindOfClass:[PayResp class]]) {//微信支付回调
//        [[LHPayManager shareManager] handWxPayUrlopenURL:resp.errCode];
////        switch (resp.errCode) {
////            case WXSuccess:{
////                NSLog(@"支付成功－PaySuccess，retcode = %d", resp.errCode);
////                
////                NSDictionary *  resultDic= @{@"resultStatus":@"9000",
////                                             @"result":@"",
////                                             @"memo":@"订单支付成功"
////                };
////                
////                break;
////            }
////            default:{
////                NSDictionary *  resultDic;
////                NSString * memo = resp.errStr.length==0 ? @"订单中途取消":resp.errStr;
////                NSString * errCode = [NSString stringWithFormat:@"%d",resp.errCode];
////                
////                break;
////                
////            }
////        }
//    }
//
//}

@end
